package com.isoft.demo.dao;

import com.isoft.demo.entity.CustomerRolers;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CustomerRolersDao {
    @Select("select * from customer_rolers where customerid = #{cid}")
    List<CustomerRolers>list(int cid);

    @Insert("insert into customer_rolers(rid,customerid) values(#{rid},#{customerid})")
    int add(CustomerRolers customerRolers);
}
